﻿using System;
using System.Collections.Generic;
using Petra.Gis.Support;

namespace Petra.Gis
{

  
  public class CustomComponentSet : DictionaryPlus<string, CustomComponent>
  {


    public CustomComponentSet()
      : base() { }




    /// <summary>
    /// adds another custom component set with ignore/skip duplicate entries
    /// </summary>
    /// <param name="anotherSet">CustomComponentSet to add</param>
    public void Add(CustomComponentSet anotherSet)
    {
      foreach (KeyValuePair<string, CustomComponent> kvp in anotherSet)
        if (!this.ContainsKey(kvp.Key))
          this.Add(kvp);

    }


  }

}
